package com.wgchao.authodemo.infrastructure.exception;

import lombok.Data;
import lombok.ToString;

/**
 * @ClassName: ObjectNotExistException
 * @author: wgchao
 * @createTime: 2019/12/10 3:16 PM
 * @Description: 对象不存在异常
 */
@Data
@ToString
public class ObjectNotExistException extends RuntimeException {
    private String msg;
    private Integer code = 4001;

    public ObjectNotExistException(String message) {
        super(message);
        this.msg = message;
    }
}
